<HTML><HEAD><TITLE>gap_query(++Format, +Args, ?Result)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(gap)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>gap_query(++Format, +Args, ?Result)</H1>
Query GAP
<DL>
<DT><EM>Format</EM></DT>
<DD>Format string
</DD>
<DT><EM>Args</EM></DT>
<DD>List of arguments
</DD>
<DT><EM>Result</EM></DT>
<DD>Result (term)
</DD>
</DL>
<H2>Description</H2>
   Evaluates an expression in GAP and returns the result as an ECLiPSe term.
   The expression is specified using Format and Args a la printf/2, and
   should be a valid GAP expression (no terminating semicolon).  The result
   is returned as an ECLiPSe term in Result (it is an error if the result
   returned from GAP is not a valid ECLiPSe term).<P>

   If there is no currently active GAP session, one is started before
   sending the query.

<H2>See Also</H2>
<A HREF="../../lib/gap/gap_query_string-3.html">gap_query_string / 3</A>, <A HREF="../../lib/gap/gap_command-2.html">gap_command / 2</A>, <A HREF="../../kernel/ioterm/printf-2.html">printf / 2</A>
</BODY></HTML>
